﻿@model smartcrm.Models.OrderQueryResult
@{
    Layout=null;
}
<style type="text/css">
    div
    {
        font-size:14px; font-weight:normal; color:#666; margin-bottom:2px;        
        }
    table{ border-collapse: collapse;
        border-spacing: 0;
        margin-top:5px;
        border: 0 none;
        margin-bottom:5px;
        border-top:2.5px solid #1D6387;
        border-right:1px solid #B4B4B4;
        border-bottom:1px solid #B4B4B4;
        background-color:White;}
    
    table td{border-left:1px solid #B4B4B4;
             border-top:1px solid #B4B4B4;
             font-size:12px; 
             padding-left:5px; 
             }
    
    table thead th
    {    text-align: center;background-color: #f7f7f7;padding-left: 1px;padding-right: 1px;border-left: 1px solid #B4B4B4;border-top: 1px solid #B4B4B4;font-size: 12px;
        }
        
</style>
@if (string.IsNullOrEmpty(Model.Message))
{
    <div id="detail" style="width:650px; margin:auto">
        <div style="font-weight:bold;">自助查询服务</div>
        <div>
            <span style="font-weight:bold;">@Model.CompanyName</span>&nbsp;&nbsp;<span>@Model.Phone</span>
        </div>
        <div style="padding-top:10px; padding-bottom:20px;">
            <div style="float:left;font-size:14px;font-weight:bold">订单编号：@Model.OrderNo</div>
            <div style="float:left;font-size:14px;font-weight:bold; margin-left:10px;">状态：<span style="color:#12A000">@Model.Status</span></div>
        </div>
        
        <div>订单名称：@Model.OrderName</div>       
        <div>订单详细：@Model.OrderDetailText</div>
        <div style="margin-top:10px;">
            <div style="font-weight:bold">处理状态</div>
            <table>
            <thead>
                <tr>
                <th style="width:150px;">处理时间</th>
                <th style="width:300px;">处理信息</th>
                <th style="width:100px;">处理状态</th>
                <th style="width:100px;">经办人</th>
                </tr>
            </thead>
            @foreach (var f in Model.WorkFlows)
            {
                <tr>
                <td>@f.Addition1</td>
                <td>@f.Addition2</td>
                <td>@f.ItemText</td>
                <td>@f.Addition3</td>
                </tr>                 
            }
            </table>
        </div>
    </div>
}
<div>@Model.Message</div>